onViewCaptured

open fun onViewCaptured(@NonNull capturedChild: @NonNull View, activePointerId: Int)(source)

Called when a child view is captured for dragging or settling. The ID of the pointer currently dragging the captured view is supplied. If activePointerId is identified as INVALID_POINTER the capture is programmatic instead of pointer-initiated.

Parameters

capturedChild

Child view that was captured

activePointerId

Pointer id tracking the child capture